Optimal. Leaf size=755 \[ -\frac{4 \sqrt{f+g x} \sqrt{a+b x+c x^2} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (-\left (10 d^2 g^2-34 d e f g+21 e^2 f^2\right )\right )\right )}{105 c^2 g^3}+\frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c^2 g \left (2 a e g (13 e f-42 d g)-b \left (35 d^2 g^2-42 d e f g+16 e^2 f^2\right )\right )+b c e g^2 (-29 a e g-28 b d g+9 b e f)+8 b^3 e^2 g^3-2 c^3 f \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 e (f+g x)^{3/2} \sqrt{a+b x+c x^2} (-b e g-4 c d g+6 c e f)}{35 c g^3}+\frac{2 (d+e x)^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{7 g} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 3.97356, antiderivative size = 755, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194 \[ -\frac{4 \sqrt{f+g x} \sqrt{a+b x+c x^2} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (-\left (10 d^2 g^2-34 d e f g+21 e^2 f^2\right )\right )\right )}{105 c^2 g^3}+\frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c^2 g \left (2 a e g (13 e f-42 d g)-b \left (35 d^2 g^2-42 d e f g+16 e^2 f^2\right )\right )+b c e g^2 (-29 a e g-28 b d g+9 b e f)+8 b^3 e^2 g^3-2 c^3 f \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 e (f+g x)^{3/2} \sqrt{a+b x+c x^2} (-b e g-4 c d g+6 c e f)}{35 c g^3}+\frac{2 (d+e x)^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{7 g} \]
Antiderivative was successfully verified.
[In] Int[((d + e*x)^2*Sqrt[a + b*x + c*x^2])/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)**2*(c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 15.9825, size = 10030, normalized size = 13.28 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In] Integrate[((d + e*x)^2*Sqrt[a + b*x + c*x^2])/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.063, size = 12923, normalized size = 17.1 \[ \text{output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)^2*(c*x^2+b*x+a)^(1/2)/(g*x+f)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{c x^{2} + b x + a}{\left (e x + d\right )}^{2}}{\sqrt{g x + f}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (e^{2} x^{2} + 2 \, d e x + d^{2}\right )} \sqrt{c x^{2} + b x + a}}{\sqrt{g x + f}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (d + e x\right )^{2} \sqrt{a + b x + c x^{2}}}{\sqrt{f + g x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)**2*(c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="giac")
[Out]